package com.yzt.zhuju.IService.call;

import androidx.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author matthewzhao
 *         created on: 2022/8/1 15:37
 *         description: 打电话模块的一些常量
 */
public interface CallConstants {
    /**未通话**/
    @CallState
    int CALL_DEFAULT = 0;
    /**拨打*/
    @CallState
    int CALL_LAUNCH = 1;
    /**接听*/
    @CallState
    int CALL_ACCEPT = 2;
    /**通话中*/
    @CallState
    int CALL_ING = 3;

    @CallType
    int TYPE_VOICE = 1;  //语音
    @CallType
    int TYPE_VIDEO = 3; //视频
    @CallType
    int TYPE_INVITE_CALL = 4; //邀请音视频

    @IntDef({
            CALL_DEFAULT,
            CALL_LAUNCH,
            CALL_ACCEPT,
            CALL_ING
    })
    @Retention(RetentionPolicy.SOURCE)
    @interface CallState {

    }

    @IntDef({
            TYPE_VOICE,
            TYPE_VIDEO,
            TYPE_INVITE_CALL
    })
    @Retention(RetentionPolicy.SOURCE)
    @interface CallType {

    }
}
